import request from '@/utils/request';

// 获取复盘
export function getReplay(params) {
    return request({
        url: `/review/look?pageNum=${params.pagenum}&pageSize=${params.pagesize}`,
        method: 'get'
    })
}

// 获取观后感
export function getFeedback(params) {
    return request({
        url: `/Feedback/look?pageNum=${params.pagenum}&pageSize=${params.pagesize}`,
        method: 'get'
    })
}

// 查询观后感
export function searchFeedback(params) {
    return request({
        url: `/Feedback/search?pageNum=${params.pagenum}&pageSize=${params.pagesize}&title=${params.searchValue}`,
        method: 'get'
    })
}

// 根据id获取观后感详情
export function feedbackDetails(params) {
    return request({
        url: `/Feedback/detail/${params}`,
        method: 'get'
    })
} 

// 根据id获取复盘详情
export function reviewDetails(params) {
    return request({
        url: `/review/detail/${params}`,
        method: 'get'
    })
} 

// 查询复盘
export function searchReview(params) {
    return request({
        url: `/review/search?pageNum=${params.pagenum}&pageSize=${params.pagesize}&title=${params.searchValue}`,
        method: 'get'
    })
}


